﻿using System;
using Presentation;

namespace PresentationTest
{
    class FakeView : IView
    {
        public string Key { get; set; }
        public string Value { get; set; }
        public string Status { get; set; }
        public string MinValue { get; set; }
        public string Log { get; set; }
        public event Action OnInsert;
        public event Action OnGetMin;
        public event Action OnDeleteMin;
        public event Action OnDataChanged;

        public FakeView()
        {
            Key = "";
            Value = "";
            Status = "";
            MinValue = "";
            Log = "";
        }

        public void ClickInsert()
        {
            OnInsert();
        }

        public void ClickGetMin()
        {
            OnGetMin();
        }

        public void ClickDeleteMin()
        {
            OnDeleteMin();
        }

        public void ChangeData()
        {
            OnDataChanged();
        }
    }
}
